class ImageBitmap {
	private img:egret.Bitmap;
	public constructor(config:Array<any>) {
              this.img = this.createBitmapByName(config['url']);
			  delete config['url'];
			for(var k in config){
				this.img[k] = config[k];
			}
	}
	    private createBitmapByName(name:string):egret.Bitmap {
        let result = new egret.Bitmap();
        let texture:egret.Texture = RES.getRes(name);
        result.texture = texture;
        return result;
    }
	 public getImgPoint():egret.Bitmap{
		 return this.img;
	 }
}